{% extends "student/base.html" %}

{% block title %}教务管理系统 --学生先修课{% endblock %}

{% block page_content %}
    <div class="row">
        <div class="col-sm-4">
            <h3 align="left">未修的先修课</h3>
        </div>
        <div class="col-sm-4">
            <h3 align="center">未修且本学期不开设的先修课</h3>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-4" style="background-color:lavender;">
            <!-- 在这里列出先修课程 -->
            <ul class="courses">
                {% for prerequisite in prerequisites %}
                    <li class="course">
                        <div class="course-content">
                            <div class="course-body">
                                {{ prerequisite.pre_course.course_name }}
                            </div>
                        </div>
                    </li>
                {% endfor %}
            </ul>
        </div>
        <div class="col-sm-4" style="background-color:lavenderblush;">
            <!-- 在这里列出先修课程 -->
            <ul class="courses">
                {% for prerequisite in prerequisitesNoThisSemester %}
                    <li class="course">
                        <div class="course-content">
                            <div class="course-body">
                                {{ prerequisite.pre_course.course_name }}
                            </div>
                        </div>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}